package com.zking.dao.mapper;

import com.zking.dao.domain.Department;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DepartmentMapper {

    @Select("SELECT * FROM department")
    List<Department> queryDepartments();

    @Select("SELECT * FROM department where id = #{id}")
    Department queryDepartment(int id);
}
